package com.sinosoft.controller;

import com.sinosoft.service.IPersonService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/sdk")
public class CustomerInsertDemoController {

    @Autowired
    private IPersonService personService;

    @RequestMapping("/insert")
    public String sdkDemo(String name, String age) {
        personService.insert(name, age);
        return "操作成功";
    }
}
